﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QskjTotalData
{
    public class CurrentMonthWarningList
    {
        /// <summary>
        /// 日期，eg:2024-01-18
        /// </summary>
        public string? time { get; set; }
        /// <summary>
        /// 当日报警数
        /// </summary>
        public int num { get; set; }
    }
    public class CurrentAlarmType
    {
        public string? type { get; set; }
        public string boc { get; set; }
    }
    /// <summary>
    /// 返回当日四公司车辆报警数量排名
    /// </summary>
    public class AlarmVehicleCompanyByToday
    {
        /// <summary>
        /// 日期，eg:2024-01-23
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string company { get; set; }
        /// <summary>
        /// 报警数
        /// </summary>
        public int num { get; set; }
    }
    /// <summary>
    /// 返回车辆报警排名最高类型TOP10
    /// </summary>
    public class AlarmTypeVehicleTopTen
    {
        /// <summary>
        /// 报警类型
        /// </summary>
        public string warningType { get; set; }
        /// <summary>
        /// 报警数
        /// </summary>
        public int num { get; set; }
        /// <summary>
        /// 报警数
        /// </summary>
        public string busOrCar { get; set; }
    }
    /// <summary>
    /// 返回车辆报警排名最高车队TOP10
    /// </summary>
    public class AlarmTypeVehicleFilialeTopTen
    {
        /// <summary>
        /// 车队名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 报警数
        /// </summary>
        public int num { get; set; }
    }
    /// <summary>
    /// 返回车辆当日排名最高报警车辆TOP10
    /// </summary>
    public class AlarmTypeVehicleBcTopTen
    {
        /// <summary>
        /// 车辆编号
        /// </summary>
        public string busCode { get; set; }
        /// <summary>
        /// 报警数
        /// </summary>
        public int num { get; set; }
    }
    public class AlarmDriver
    {
        /// <summary>
        /// 简称
        /// </summary>
        public string? shortname { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string? company { get; set; }
        /// <summary>
        /// 车队
        /// </summary>
        public string? filiale { get; set; }
        /// <summary>
        /// 驾驶员名称
        /// </summary>
        public string? driverName { get; set; }
        /// <summary>
        /// 驾驶员身份证号
        /// </summary>
        public string? driverId { get; set; }
        /// <summary>
        /// 驾驶员准运证号
        /// </summary>
        public string? driverWId { get; set; }
        /// <summary>
        /// 车牌
        /// </summary>
        public string? vehicleNo { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int num { get; set; }
        /// <summary>
        /// 报警类型Id
        /// </summary>
        public int qskjId { get; set; }
        /// <summary>
        /// 报警类型名称
        /// </summary>
        public string? qskjName { get; set; }
    }
    /// <summary>
    /// 返回最近10天出租车、国旅、租赁、交运巴士报警详情
    /// </summary>
    public class AlarmVehicleCompanyByTenToday
    {
        /// <summary>
        /// 日期，eg:2024-01-23
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string company { get; set; }
        /// <summary>
        /// 报警类型
        /// </summary>
        public int qskjId { get; set; }
        /// <summary>
        /// 报警数
        /// </summary>
        public int num { get; set; }
        /// <summary>
        /// 车辆数
        /// </summary>
        public int vehnum { get; set; }
    }
    /// <summary>
    /// 部门车辆信息
    /// </summary>
    public class DepAnalyze
    {
        /// <summary>
        /// 公司信息
        /// </summary>
        public string? company { get; set; }
        /// <summary>
        /// 部门信息
        /// </summary>
        public string? dep { get; set; }
        /// <summary>
        /// 车辆数
        /// </summary>
        public int num { get; set; }
    }
    /// <summary>
    /// 车辆在离线数据
    /// </summary>
    public class VehicleOnline
    {
        /// <summary>
        /// 车牌号
        /// </summary>
        public string? vehicle { get; set; }
        /// <summary>
        /// 在离线
        /// </summary>
        public string? online { get; set; }
    }
    public class ServerInstance
    {
        /// <summary>
        /// 状态
        /// </summary>
        public string? status { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public ServerData data { get; set; }
    }
    public class ServerData
    {
        /// <summary>
        /// 状态
        /// </summary>
        public string? resultType { get; set; }
        public List<ServerResult> result { get; set; }

    }
    public class ServerResult
    {
        public metric metric { get; set; }
        public List<string> value { get; set; }
    }
    public class metric
    {
        public string instance { get; set; }
    }
    public class TokenInfo
    {
        public string token { get; set; }
    }
    /// <summary>
    /// 稽查数据证据查询处理
    /// </summary>
    public class NetworkData
    {
        /// <summary>
        /// 关键key
        /// </summary>
        public string? key { get; set; }
        /// <summary>
        /// 稽查数据主键
        /// </summary>
        public string? id { get; set; }
    }
    /// <summary>
    /// 车队在线数据统计数据生产
    /// </summary>
    public class CompanyFilialeVehicle
    {
        /// <summary>
        /// 公司名称
        /// </summary>
        public string? CompanyName { get; set; }
        /// <summary>
        /// 车队名称
        /// </summary>
        public string? FilialeName { get; set; }
        /// <summary>
        /// 车辆牌号
        /// </summary>
        public string? VehicleNo { get; set; }
        /// <summary>
        /// 当天在离线
        /// </summary>
        public string? OnOffline { get; set; }
    }
    /// <summary>
    /// 车队车辆在线数据
    /// </summary>
    public class FilialeVehicleOnline
    {
        /// <summary>
        /// 公司名称
        /// </summary>
        public string? CompanyName { get; set; }
        /// <summary>
        /// 车队名称
        /// </summary>
        public string? FilialeName { get; set; }
        /// <summary>
        /// 车队总车辆数
        /// </summary>
        public int VehicleTotalNo { get; set; }
        /// <summary>
        /// 今日上线数
        /// </summary>
        public int TodayOnlineNo { get; set; }
        /// <summary>
        /// 最后在线时间
        /// </summary>
        public string? LastTime { get; set; }
    }
}
